/*好单库商品*/
class HDKListModelEntity {
  List<HDKListModelData> data;
  int code;
  String msg;
  int min_id;

  HDKListModelEntity({this.data, this.code, this.msg});

  HDKListModelEntity.fromJson(Map<String, dynamic> json) {
    if (json['data'] != null) {
      data = new List<HDKListModelData>();
      (json['data'] as List).forEach((v) {
        data.add(new HDKListModelData.fromJson(v));
      });
    }
    code = json['code'];
    msg = json['msg'];
    min_id= json['min_id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data.map((v) => v.toJson()).toList();
    }
    data['code'] = this.code;
    data['msg'] = this.msg;
    data['min_id'] = this.min_id;
    return data;
  }
}

class HDKListModelData {
// itemid	宝贝ID
// itemtitle	宝贝标题
// itempic 宝贝主图原始图像
// itemprice	在售价
// itemsale	宝贝月销量
// couponmoney	优惠券金额
// itemendprice	宝贝券后价
// tkrates	佣金比例

  String itemid;
  String itemtitle;
  String itempic;
  String itemprice;
  String itemsale;
  String couponmoney;
  String itemendprice;
  String tkrates;

  HDKListModelData(
      {this.itemid,
      this.itemtitle,
      this.itempic,
      this.itemprice,
      this.itemsale,
      this.couponmoney,
      this.itemendprice,
      this.tkrates,
      });

  HDKListModelData.fromJson(Map<String, dynamic> json) {
    itemid = json['itemid'];
    itemtitle = json['itemtitle'];
    itempic = json['itempic'];
    itemprice = json['itemprice'];
    itemsale = json['itemsale'];
    couponmoney = json['couponmoney'];
     itemendprice = json['itemendprice'];
      tkrates = json['tkrates'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['itemid'] = this.itemid;
    data['itemtitle'] = this.itemtitle;
    data['itempic'] = this.itempic;
    data['itemprice'] = this.itemprice;
    data['itemsale'] = this.itemsale;
    data['couponmoney'] = this.couponmoney;
    data['itemendprice'] = this.itemendprice;
    data['tkrates'] = this.tkrates;
    return data;
  }
}